const mongoose = require('mongoose');

mongoose.connect("mongodb://Document:i52iKjk5nMcET5aF@123.57.246.29:27017/document?authSource=document")

const conn = mongoose.connection;

conn.on('connected', () => {
    console.log('数据库连接成功');
})

conn.on('error', (err) => {z
    console.log('数据库连接失败');
})

module.exports = mongoose;